import 'package:flutter/material.dart';
import 'package:flutter_demo/app.dart';
import 'dart:io';
import 'package:flutter/services.dart';
import 'package:flutter_demo/provider/active.dart';
import 'package:flutter_demo/view/home/home.dart';
// import 'package:flutter_demo/provider/index.dart';
import 'package:provider/provider.dart';

void main() {
  runApp(MultiProvider(
      providers: [
        ChangeNotifierProvider.value(value: HomeProvider()),
      ],
      child: AppComponent()
      // child: MaterialApp(
      //   home: HomePage(),
      // )
  ));

  //设置Android头部的导航栏透明
  if (Platform.isAndroid) {
    SystemUiOverlayStyle systemUiOverlayStyle = SystemUiOverlayStyle(statusBarColor: Colors.transparent);
    SystemChrome.setSystemUIOverlayStyle(systemUiOverlayStyle);
  }
}